<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>HTML5语言功能</title>
<script type="text/javascript">
	function webkitspeechchange(){
		alert(document.getElementById("text").value);
	}
</script>
</head>

<body>
<input type="text" id="text" x-webkit-speech lang="zh-CN" x-webkit-grammar="bUIltin:search" onwebkitspeechchange="webkitspeechchange()">
</body>
</html>
